#ifndef _THREAD_H_
#define _THREAD_H_

#include "types.h"

namespace reldt {

class Thread
{
public:
	void start(Func f, void *a);
	void join();

private:
    pthread_t tid;
    Func func;
    void *arg;
    static void *entry(void *arg);
};

}
#endif //_THREAD_H_